#!/bin/bash
for _ip in $@
do
   kubectl get pods -o wide --field-selector spec.nodeName=${_ip}|grep -v NAME|awk '{print $1}'|xargs -i kubectl delete po {} --grace-period=0 --force
done
